import {defineStore} from 'pinia'

type TagTabMsg = {
  curTagType:TagType
}
type TagTabAction={
  setCurTagType: (val:TagType) => void,
}
export const useTagTabStore = defineStore<string, TagTabMsg, {}, TagTabAction>('tagTab',{
  state: () => ({
    curTagType:'expenses'
  }),
  actions: {
    setCurTagType(val) {
      this.curTagType = val
    },
  },
})